package dao;

import bean.BookBean;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IBookDao {

    @Select("select * from t_book")
    public List<BookBean>  getAllBook();
    @Select("select * from t_book where id=#{bookId}")
    public BookBean  getBookById(@Param("bookId") int bookId);
}
